import { money } from "@/util/util"
export const tableOption = {
  border: true,
  // index: true,
  // indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  searchMenuSpan: 6,
  editBtn: false,
  delBtn: false,
  align: 'center',
  addBtn: false,
  viewBtn: false,
  labelWidth: 120,
  menuWidth: 280,
  selection: true,
  tip: false,
  // expand:true,
  // defaultExpandAll: true,
  // rowkey:

  column: [{
    label: '规格',
    prop: 'Spec',
    slot: true,
  }, {
    label: '商品名称',
    prop: 'GoodsName',
    slot:true,
  }, 
  {
    label: '商品图片',
    prop: 'ImgUrl',
    slot: true,
  },{
    label: '价格(元)',
    prop: 'Price',
    formatter: function (row) {
      return money(row.Price)
    }
  },
  /*  {
     label: '供货价',
     prop: 'PriceSupply',
   }, */
  {
    label: '库存',
    prop: 'Stock',
  }, {
    label: '销量',
    prop: 'Sale',
  }, {
    label: '店铺编号',
    prop: 'ShopId',
  }, {
    label: '小区编号',
    prop: 'CommunityId',
  }, {
    label: '商品分类',
    prop: 'GoodsTypeName',
    width: '120px',
  }, 
  {
    label: '状态',
    prop: 'StatusStr',
  }, {
    label: '更新时间',
    prop: 'PutDate',
    width: '180px',
  }, {
    label: '最新上架时间',
    prop: 'PutOnDate',
    width: '180px',
  },
  ]
}
